package com.pig4cloud.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.mall.product.dto.CategoryParam;
import com.pig4cloud.mall.product.entity.ProductCategory;
import com.pig4cloud.mall.product.vo.CategoryVo;
import com.pig4cloud.pig.common.core.util.PageResult;

import java.util.List;

/**
 * 产品分类
 *
 * @author fangyu
 * @date 2020-12-26 23:41:08
 */
public interface ProductCategoryService extends IService<ProductCategory> {

    int create(CategoryParam categoryParam);

	List<CategoryVo> listCategory(Long parentId);

	PageResult pageCategory(Long parentId, Integer page, Integer pageSize);

	int delete(Long id);

	int update(Long id, CategoryParam categoryParam);


}
